<?php
/*  page header
    ============================================================================================================== */
	function page_header( $title = "Wayne Schlegel Inc.", $showNav = true, $x = "" ) {
	global $js_pageUrl, $js_functions;
	
	if( class_exists( "Navigation" ) ){
		// add current page to back-navigation-stack
    	$current_url = 'http://'.$_SERVER['HTTP_HOST'].$_SERVER['REQUEST_URI'];
	    $_SESSION['backNavigation']->addUrl( $current_url );
	}

?>
	<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
	<html>
		<meta http-equiv="content-type" content="text/html; charset=utf-8" />
		<head>
			<title><?=$title?></title>
			<link rel="stylesheet"       href="/css/admin.css" type="text/css" />
			<link rel="stylesheet"       href="/css/myFlights_mainStyle.css" type="text/css" />
			<link rel="apple-touch-icon" href="/images/home-icon.png"/>
			<link rel="Shortcut Icon"    href="/images/favicon.ico">
			<link rel="icon"             href="/images/favicon.ico" type="image/x-icon">

			<script src="/functions/jquery-1.2.3.pack.js"  type="text/javascript" ></script>
			<script src="/functions/jquery.ajaxContent.js" type="text/javascript" ></script>
			<script src="/functions/jquery.form.pack.js"   type="text/javascript" ></script>
			
			<meta name="viewport" content="width=device-width; initial-scale=1.0; maximum-scale=1.0; user-scalable=0;" />
			
			
			<script type="text/javascript">
			$(document).ready(function(){
				$('.stmAjax').ajaxContent({   
					loaderType:'img',
					loadingMsg:'images/loading.gif',
					errorMsg: 'Beim Aufruf der Seite ist ein Fehler aufgetreten!',
					event:'click',   
					target:'#main',
					filter:'.stmAjax',
					ex_target:'#ajaxContent'    
				});
			});
			</script>

			<script type="application/x-javascript">
			if (navigator.userAgent.indexOf('iPhone') != -1) {
			       addEventListener("load", function() {
			               setTimeout(hideURLbar, 0);
			       }, false);
			}
			function hideURLbar() {
			       window.scrollTo(0, 1);
			}
			</script>

		</head>
		<body>
		<a href="/" style="padding: 10px;"><img src="/images/WayneSchlegel_Logo.png" alt="Logo Wayne Schlegel Inc." style="border:none;"/></a>
		
		<div id="main">
		<?php
			if( !empty( $_GET['msg'] ) ){
				echo base64_decode( $_GET['msg'] );
			}
		?>

	<?php
	}



/*  page footer
    ============================================================================================================== */
	function page_footer() {
		global $js_pageUrl, $js_functions;
	?>
				<table class="iBar">
					<tr>
						<td><a href="previous-page.php"><img src="/images/icons/back.png" align="absmiddle" /></a></td>
						<td><a href="/">Home</a></td>
						<td class="lastCell"><a href="/information.php"><img src="/images/icons/info.png" align="absmiddle" /></a></td>
					</tr>
				</table>
			</div/><!--#main-->
			<div style="text-align: right; padding-right: 15px; clear: both;">
				<small>Version 3.2.0 <small>BETA</small> | Release 2008-11-23</small>
    		</div>
			<?php
    		# debug information
    		if( debug === true ) {
    		
	    		echo "<hr />DEBUG-INFORMATION<pre>";
	    		echo var_dump( $_SESSION );
	    		echo "</pre><small>turn OFF debugging in /functions/inc.systemFunctions.php</small>";
    		}
    		?>
		</body>
		<!-- (C) 2008, stefanmoeller.com -->
	</html>
	<?php
	}
?>